package com.ding.login.controller;


import com.ding.login.service.IRecordLoginService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Ding
 * @since 2022-07-21
 */
@Slf4j
@Api("日志登录服务")
@RestController
@RequestMapping("/record-login")
public class RecordLoginController {

    @Autowired
    private IRecordLoginService recordLoginService;

    @PostMapping
    public void saveLog(Integer userId){
        recordLoginService.saveLoginLog(userId);
    }



}

